package com.dandan.tzx.activity;

import android.os.Bundle;
import android.support.v4.app.Fragment;

import com.alibaba.android.arouter.facade.annotation.Route;
import com.dandan.tzx.RouterFragment;
import com.dandan.tzx.router.DDRouter;
import com.dandan.tzx.routerhelper.R;

/**
 * Created by tanzhenxing
 * Date: 2018/1/9 下午9:00
 * Description:
 */

@Route(path = FragActivity.PAHT)
public class FragActivity extends BaseActivity {
    public final static String PAHT = "/activity/FragActivity";
    Fragment fragment;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_fragment);
        fragment = (Fragment) DDRouter.getInstance().build(RouterFragment.PATH).navigation();
        getSupportFragmentManager().beginTransaction().replace(R.id.container, fragment).commit();
    }
}
